//
//  UIDevice+NXAdd.m
//  NCube
//
//  Created by kepuna on 2017/5/24.
//  Copyright © 2017年 junjie.liu. All rights reserved.
//

#import "UIDevice+NXAdd.h"

@implementation UIDevice (NXAdd)

+ (BOOL)isIPhone5 {
    return [UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO ;
}

+ (BOOL)isIPhone6 {
    return [UIScreen instancesRespondToSelector:@selector(currentMode)] ? (CGSizeEqualToSize(CGSizeMake(750, 1334), [[UIScreen mainScreen] currentMode].size) || CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size)) : NO;
}

+ (BOOL)isIPhone6p {
    return [UIScreen instancesRespondToSelector:@selector(currentMode)] ? (CGSizeEqualToSize(CGSizeMake(1125, 2001), [[UIScreen mainScreen] currentMode].size) || CGSizeEqualToSize(CGSizeMake(1242, 2208), [[UIScreen mainScreen] currentMode].size)) : NO;
}

@end
